﻿<%@ Page Language="C#" MasterPageFile="~/admin/adminMasterPage.master" AutoEventWireup="true" CodeFile="addProduct.aspx.cs" Inherits="admin_product_addProduct" Title="无标题页" %>

<asp:Content ID="Content2" ContentPlaceHolderID="contentPlaceHolder" Runat="Server">
    <table class="mainTable">
        <tr>
            <td>
                <asp:Label ID="Label2" runat="server" Text="中文名称："></asp:Label>
            </td>
            <td>
                <asp:TextBox ID="nameTextBox_cn" runat="server" Width="320px"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                    ControlToValidate="nameTextBox_cn" ErrorMessage="中文名不能为空"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td>
                <asp:Label ID="Label1" runat="server" Text="英文名称："></asp:Label>
            </td>
            <td>
                <asp:TextBox ID="nameTextBox_en" runat="server" Width="320px"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
                    ControlToValidate="nameTextBox_en" ErrorMessage="英文名不能为空"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td>
                <asp:Label ID="Label3" runat="server" Text="所属类别："></asp:Label>
            </td>
            <td>
                <asp:ObjectDataSource ID="ObjectDataSource1" runat="server" 
                    SelectMethod="getSmallCategory" TypeName="DB"></asp:ObjectDataSource>
                <asp:DropDownList ID="categoryList" runat="server" 
                    DataSourceID="ObjectDataSource1" DataTextField="categoryName_cn" 
                    DataValueField="categoryId">
                </asp:DropDownList>
            </td>
        </tr>
        <tr>
            <td>
                <asp:Label ID="Label4" runat="server" Text="新产品："></asp:Label>
            </td>
            <td>
                <asp:CheckBox ID="newProductCheckBox" runat="server" Text="此产品为最新产品" />
            </td>
        </tr>
        <tr>
            <td>
                <asp:Label ID="Label5" runat="server" Text="推荐产品："></asp:Label>
            </td>
            <td>
                <asp:CheckBox ID="recommendedProductCheckBox" runat="server" Text="推荐此产品" />
            </td>
        </tr>
        <tr>
            <td>
                <asp:Label ID="Label6" runat="server" Text="产品图片："></asp:Label>
            </td>
            <td>
                <asp:FileUpload ID="imageFileUpload" runat="server" />
                <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" 
                    ControlToValidate="imageFileUpload" ErrorMessage="请选择文件"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td>
                <asp:Label ID="Label7" runat="server" Text="中文说明："></asp:Label>
            </td>
            <td>
                <asp:TextBox ID="descTextBox_cn" runat="server" TextMode="MultiLine" Height="152px" 
                    Width="413px"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td>
                <asp:Label ID="Label8" runat="server" Text="英文说明："></asp:Label>
            </td>
            <td>
                <asp:TextBox ID="descTextBox_en" runat="server" TextMode="MultiLine" Height="152px" 
                    Width="413px"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td>
                
            </td>
            <td>
                <asp:Button ID="Button1" runat="server" Text="继续添加" CssClass="lbutton" 
                    BorderColor="Transparent" BorderStyle="None" onclick="Button1_Click"/>
                
                <asp:Button ID="Button2" runat="server" Text="保存" 
                    onclick="Button2_Click" CssClass="button" BorderColor="Transparent" BorderStyle="None"/>
            </td>
        </tr>
    </table>
</asp:Content>

